html, body, #root {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #f4f6fa;
}

/* 隐藏ProcessDetail组件中的滚动条 */
.process-detail-container *::-webkit-scrollbar {
  width: 0px !important;
  height: 0px !important;
  display: none !important;
}

.process-detail-container * {
  -ms-overflow-style: none !important;  /* IE and Edge */
  scrollbar-width: none !important;  /* Firefox */
}

/* 系统整体布局 */
.system-root {
  display: flex;
  height: 100vh;
  background: #f4f6fa;
  font-family: '微软雅黑', 'Microsoft YaHei', Arial, sans-serif;
}

/* 顶部栏 */
.layout-header {
  width: 100vw;
  height: 48px;
  background: #1766a3;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  box-shadow: none;
  border-bottom: 1px solid #e5e8ef;
}

.header-left {
  display: flex;
  align-items: center;
  height: 100%;
  flex: 1;
  padding-left: 16px;
}

.header-logo {
  width: 32px;
  height: 32px;
  margin-right: 8px;
}

.header-title {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  white-space: nowrap;
  margin-right: 0;
}

.header-tabs {
  display: flex;
  align-items: flex-end;
  height: 100%;
  padding-right: 16px;
  position: relative;
  left: auto;
  right: 0;
  bottom: 0;
  margin-left: 20px;
}

.header-tab {
  display: flex;
  align-items: center;
  background: #1766a3;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 0 16px;
  height: 32px;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
  margin-left: 1px;
}

.header-tab:first-child {
  margin-left: 0;
}

.home-tab {
  margin-left: 10px;
}

.header-tab.active {
  background: #fff;
  color: #1766a3;
}

.header-tab-icon {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  font-size: 16px;
}

.tab-title {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tab-close-icon {
  margin-left: 8px;
  font-size: 10px;
  opacity: 0.6;
}

.tab-close-icon:hover {
  opacity: 1;
}

/* 主体布局 */
.layout-root {
  width: 100vw;
  height: 100vh;
  background: #f4f6fa;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.layout-main {
  display: flex;
  flex: 1;
  margin-top: 48px;
  height: calc(100vh - 48px - 32px); /* 减去顶部栏和底部栏的高度 */
  min-height: 0;
}

/* 侧边栏 */
.layout-sider {
  width: 180px;
  background: #f7fafd;
  color: #232f3e;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-shadow: none;
  transition: width 0.2s;
  min-width: 48px;
  border-right: 2px solid #d0d6e0;
  position: relative;
  height: 100%;
}

.layout-sider.collapsed {
  width: 48px;
}

.layout-sider.collapsed .sider-menu-label,
.layout-sider.collapsed .sider-menu-caret {
  display: none;
}

.layout-sider.collapsed .sider-menu-icon {
  margin-right: 0;
  font-size: 22px; /* 放大图标 */
  width: 100%;
  justify-content: center;
}

.sider-menu {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
  overflow: auto;
}

.sider-menu-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
  position: relative;
  font-size: 14px;
  min-height: 32px;
}

.sider-menu-item:hover {
  background: #e5f1fb;
}

.sider-menu-item.active {
  background: #e5f1fb;
}

.sider-menu-icon {
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.sider-menu-label {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.sider-menu-caret {
  font-size: 10px;
  opacity: 0.7;
  margin-left: 4px;
  cursor: pointer;
}

/* 子菜单样式 */
.sub-menu {
  margin-left: 12px;
  margin-top: 4px;
  padding-left: 12px;
  border-left: 1px dashed #d0d6e0;
}

.sub-menu-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
  font-size: 14px;
  min-height: 28px;
  color: #444;
}

.sub-menu-item:hover {
  background: #e5f1fb;
  color: #1766a3;
}

.sub-menu-icon {
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #555;
}

.sub-menu-label {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sider-actions {
  position: absolute;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  padding: 12px 8px;
  background-color: #f7fafd;
  border-top: 1px solid #e5e8ef;
  z-index: 1;
}

.sider-actions .sider-action-btn:last-child {
  margin-left: auto;
}

.sider-action-btn {
  color: #232f3e;
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  margin: 0;
}

.sider-action-btn:hover, .sider-action-btn.pinned {
  color: #1766a3;
  background: #e5f1fb;
}

.sider-action-btn[disabled] {
  color: #a0a0a0;
  cursor: not-allowed;
  background: transparent;
}

.sider-action-btn[disabled]:hover {
  color: #a0a0a0;
  background: transparent;
}

.layout-content {
  flex: 1;
  padding: 16px;
  background: #f4f6fa;
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.content-body {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: auto;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.content-body h2 {
  font-size: 18px;
  font-weight: 500;
  color: #232f3e;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e8ef;
}

.layout-copyright {
  height: 32px;
  background: #f4f6fa;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border-top: 1px solid #e5e8ef;
  padding: 0;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.icp-link {
  color: #666;
  text-decoration: none;
}

.icp-link:hover {
  color: #1766a3;
  text-decoration: underline;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .header-title, .sider-title {
    display: none;
  }
  .header-tabs {
    padding-left: 8px;
  }
  .layout-sider {
    width: 48px;
  }
}

/* 内容区域样式 */
.content-container {
  padding: 20px;
}

.markdown-content {
  height: 100%;
  background-color: #fff;
  border: 1px solid #e8e8e8;
  overflow-y: auto;
}

.markdown-wrapper h1, .markdown-wrapper h2, .markdown-wrapper h3 {
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  color: #1766a3;
}

.markdown-wrapper h4 {
  margin-top: 1.2em;
  margin-bottom: 0.6em;
  color: #2a6496;
}

.markdown-wrapper p {
  line-height: 1.6;
  margin-bottom: 1em;
  color: #333;
}

.markdown-wrapper ul, .markdown-wrapper ol {
  padding-left: 2em;
  margin-bottom: 1em;
}

.markdown-wrapper li {
  margin-bottom: 0.5em;
  line-height: 1.6;
}

/* 工业风格的节样式 */
.industrial-section {
  margin: 20px 0;
  border: 1px solid #d9d9d9;
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-color: #f8f8f8;
}

.industrial-section-header {
  padding: 10px 15px;
  background-color: #1766a3;
  color: white;
  font-weight: 500;
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
}

/* 隐藏智能推荐使用说明的标题栏 */
.industrial-section-header:contains("智能推荐使用说明") {
  display: none;
}

/* Mermaid样式覆盖 */
.mermaid {
  padding: 15px;
  background-color: #fff;
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid #e8e8e8;
  border-radius: 3px;
}

/* 优化流程图样式 */
.mermaid svg {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
}

/* 新的流程图容器样式 */
.mermaid-container {
  margin: 20px 0;
  padding: 15px;
  background-color: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.mermaid-diagram {
  text-align: left;
}

.mermaid-diagram svg {
  max-width: 30% !important;
  width: 30% !important;
  height: auto !important;
  margin: 0 !important;
  display: block !important;
}

/* 强制覆盖Mermaid生成的SVG样式 */
.mermaid-diagram svg text {
  font-size: 11px !important;
  font-family: '微软雅黑', 'Microsoft YaHei', sans-serif !important;
}

.mermaid-error {
  padding: 15px;
  background-color: #fff2f0;
  border: 1px dashed #ffccc7;
  color: #f5222d;
  border-radius: 3px;
}

.mermaid-error h4 {
  margin-top: 0;
  margin-bottom: 10px;
}

.mermaid-error pre {
  background-color: #f8f8f8;
  padding: 10px;
  border-radius: 3px;
  overflow-x: auto;
  font-size: 12px;
  margin-top: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .layout-content {
    margin-left: 0;
  }
}

/* 全局样式 */
body {
  margin: 0;
  padding: 0;
  font-family: '微软雅黑', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  color: #333;
  background-color: #f0f2f5;
  overflow-x: hidden;
}

/* 布局样式 */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-header {
  background-color: #0e5394;
  color: white;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.app-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-logo img {
  height: 40px;
  width: auto;
}

.app-title {
  font-size: 20px;
  font-weight: bold;
  margin: 0;
}

.app-content {
  display: flex;
  flex: 1;
  background-color: #f0f2f5;
}

.app-sidebar {
  width: 200px;
  background-color: white;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
  z-index: 5;
}

.app-main {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.app-footer {
  background-color: #f0f2f5;
  color: #666;
  text-align: center;
  padding: 15px;
  border-top: 1px solid #e8e8e8;
}

/* 菜单样式 */
.sidebar-menu {
  border-right: none;
}

.sidebar-menu .ant-menu-item {
  margin: 0 !important;
  border-radius: 0;
}

.sidebar-menu .ant-menu-item-selected {
  background-color: #e6f7ff;
}

/* 内容区样式 */
.content-container {
  background-color: white;
  border-radius: 4px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Markdown内容样式 */
.markdown-content {
  width: 100%;
  margin-bottom: 20px;
}

.markdown-wrapper {
  line-height: 1.6;
}

.markdown-wrapper h1 {
  font-size: 24px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-top: 0;
}

.markdown-wrapper h2 {
  font-size: 20px;
  color: #0e5394;
  margin-top: 30px;
}

.markdown-wrapper h3 {
  font-size: 18px;
  margin-top: 25px;
}

.markdown-wrapper h4 {
  font-size: 16px;
  margin-top: 20px;
}

.markdown-wrapper p {
  margin: 16px 0;
}

.markdown-wrapper ul, .markdown-wrapper ol {
  padding-left: 20px;
}

.markdown-wrapper li {
  margin: 8px 0;
}

/* 流程图样式 */
.mermaid-container {
  margin: 20px 0;
  padding: 15px;
  background-color: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.mermaid-diagram {
  text-align: left;
}

.mermaid-diagram svg {
  max-width: 30% !important;
  width: 30% !important;
  height: auto !important;
  margin: 0 !important;
  display: block !important;
}

/* 强制覆盖Mermaid生成的SVG样式 */
.mermaid-diagram svg text {
  font-size: 11px !important;
  font-family: '微软雅黑', 'Microsoft YaHei', sans-serif !important;
}

.mermaid-diagram .node text {
  font-size: 11px !important;
}

.mermaid-diagram .edgeLabel text {
  font-size: 10px !important;
}

.mermaid-diagram .cluster text {
  font-size: 12px !important;
}

.mermaid-error {
  padding: 15px;
  background-color: #fff1f0;
  border: 1px solid #ffccc7;
  border-radius: 4px;
  margin: 20px 0;
}

.mermaid-error h4 {
  color: #f5222d;
  margin-top: 0;
}

.mermaid-error pre {
  background-color: #f5f5f5;
  padding: 10px;
  border-radius: 4px;
  overflow-x: auto;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .app-sidebar {
    width: 80px;
  }
  
  .app-main {
    padding: 10px;
  }
  
  .content-container {
    padding: 15px;
  }
}

/* 工业风格主题 */
.industrial-theme {
  --primary-color: #0e5394;
  --secondary-color: #2c3e50;
  --accent-color: #3498db;
  --light-bg: #ecf0f1;
  --dark-bg: #2c3e50;
  --success-color: #27ae60;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;
  --text-color: #333333;
  --light-text: #ffffff;
}

/* 卡片样式 */
.info-card {
  margin-bottom: 20px;
  border-radius: 4px;
  overflow: hidden;
}

.info-card .ant-card-head {
  background-color: #0e5394;
  color: white;
}

.info-card .ant-card-body {
  padding: 15px;
}

/* 按钮样式 */
.action-button {
  background-color: #0e5394;
  border-color: #0e5394;
}

.action-button:hover {
  background-color: #0a407a;
  border-color: #0a407a;
}

/* 表格样式 */
.data-table {
  border-collapse: collapse !important;
  table-layout: fixed !important;
  width: 100% !important;
}

.data-table table {
  width: 100% !important;
  table-layout: fixed !important;
}

.data-table .ant-table-container {
  border-radius: 0 !important;
  border: none !important;
}

.data-table .ant-table-thead > tr > th {
  background-color: #f7f7f7;
  color: #333;
  font-weight: 600;
  padding: 12px 8px;
  border-bottom: 1px solid #e8e8e8;
  height: 60px;
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
  line-height: 20px;
  overflow: visible;
  box-sizing: border-box;
}

.data-table .ant-table-thead > tr > th .ant-table-column-title {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  line-height: 1.5;
  position: static;
}

.data-table .ant-table {
  border-radius: 0;
}

.data-table .ant-table-tbody > tr > td {
  padding: 12px 8px;
  border-bottom: 1px solid #e8e8e8;
}

.data-table .ant-table-tbody > tr:hover > td {
  background-color: #f0f7ff;
}

.data-table .ant-table-thead > tr > th:first-child,
.data-table .ant-table-tbody > tr > td:first-child {
  padding-left: 16px;
}

/* 强制移除表头和表体之间的分隔条 */
.data-table .ant-table-header {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden !important;
}

.data-table .ant-table-header::-webkit-scrollbar {
  display: none !important;
}

.data-table .ant-table-body {
  overflow-y: auto !important;
}

.data-table .ant-table-sticky-header {
  position: sticky;
  top: 0;
  z-index: 2;
}

/* 确保滚动条不会导致表头和表体不对齐 */
.data-table .ant-table-body {
  overflow-x: auto !important;
  scrollbar-width: thin;
}

/* 修复表头和表体列宽不一致问题 */
.data-table .ant-table-header table,
.data-table .ant-table-body table {
  width: 100% !important;
}

/* 隐藏表头下方的空白间距 */
.data-table .ant-table-header + div {
  display: none !important;
}

/* 表格中图标按钮样式 */
.data-table .icon-button {
  color: #0e5394;
  margin-right: 8px;
  font-size: 16px;
  cursor: pointer;
}

.data-table .icon-button:hover {
  color: #1766a3;
}

.data-table .icon-button.delete {
  color: #f5222d;
}

.data-table .icon-button.delete:hover {
  color: #ff4d4f;
}

/* 产品库左侧分类树样式 */
.ant-tree-show-line .ant-tree-indent-unit::before {
  border-right: 1px solid #d9d9d9;
}

.ant-tree-show-line .ant-tree-switcher {
  background: transparent;
}

.ant-tree .ant-tree-node-content-wrapper:hover {
  background-color: #e6f7ff;
}

.ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected {
  background-color: #bae7ff;
}

/* 自定义树样式 - 新版本 */
.custom-tree {
  width: 100%;
  overflow: auto;
  max-height: calc(100vh - 190px);
}

.custom-tree-node {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 4px;
}

.node-content {
  display: flex;
  align-items: center;
  padding: 4px 0;
  cursor: pointer;
  position: relative;
}

.node-content:hover {
  background-color: #e6f7ff;
}

.tree-switcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  cursor: pointer;
  margin-right: 4px;
}

.tree-children {
  margin-left: 0;
}

/* 分页器样式 */
.ant-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 16px 0 !important;
}

.ant-pagination-options {
  margin-left: 16px;
}

.ant-pagination-total-text {
  margin-right: auto;
  color: #666;
}

.ant-pagination-item {
  border-radius: 2px;
  margin-right: 8px;
}

.ant-pagination-item a {
  color: #666;
}

.ant-pagination-item-active {
  background-color: #0e5394;
  border-color: #0e5394;
}

.ant-pagination-item-active a {
  color: #fff !important;
}

.ant-pagination-prev, 
.ant-pagination-next,
.ant-pagination-jump-prev, 
.ant-pagination-jump-next {
  margin-right: 8px;
}

.ant-pagination-options-quick-jumper {
  margin-left: 16px;
  color: #666;
}

.ant-pagination-options-quick-jumper input {
  margin: 0 8px;
  border-radius: 2px;
}

.ant-pagination-options-size-changer {
  margin-right: 8px;
}

.ant-select-dropdown {
  border-radius: 2px;
}

.ant-table-pagination.ant-pagination {
  margin: 16px 0 !important;
}

/* 自定义分页样式 */
.custom-pagination {
  display: none !important; /* 隐藏原始分页，使用自定义分页 */
}

.pagination-info-container {
  box-sizing: border-box;
  height: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.pagination-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 16px;
  box-sizing: border-box;
}

.pagination-tools {
  display: flex;
  align-items: center;
}

.pagination-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #1766a3;
  padding: 0 5px;
  margin: 0 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:disabled {
  color: #ccc;
  cursor: not-allowed;
}

.pagination-btn:hover:not(:disabled) {
  color: #0e5394;
}

.pagination-tools > span {
  margin: 0 5px;
}

.pagination-page {
  font-weight: bold;
  color: #333;
}

.pagination-page-size {
  display: flex;
  align-items: center;
}

.page-size-text {
  font-weight: bold;
  color: #333;
}

/* 产品库样式 */
.product-library-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.category-tree-card,
.category-list-card {
  box-shadow: none;
}

.category-tree-card .ant-card-head,
.category-list-card .ant-card-head {
  border-bottom: 1px solid #f0f0f0;
  padding: 0 0 8px 0;
  min-height: auto;
}

.category-tree-card .ant-card-head-title,
.category-list-card .ant-card-head-title {
  padding: 8px 0;
  font-size: 15px;
  color: #1766a3;
}

.category-tree-card .ant-card-body,
.category-list-card .ant-card-body {
  padding: 12px 0;
}

.empty-tree {
  color: #999;
  text-align: center;
  padding: 16px 0;
}

/* 表格行样式 */
.table-row-normal-height {
  height: 50px;
  box-sizing: border-box;
}

/* 表格通用样式 */
.data-table {
  border-collapse: collapse !important;
}

.data-table .ant-table {
  border-radius: 0;
}

.data-table .ant-table-container {
  border-radius: 0 !important;
  border: none !important;
}

/* 强制表头与内容对齐 */
.data-table .ant-table-thead > tr > th:not(:first-child) {
  border-left: 1px solid #e8e8e8;
}

/* 确保表头文字显示不重叠 */
.ant-table-column-title {
  margin: 0 !important;
  line-height: 1.5 !important;
}

/* 修复表头与表体的界限 */
.data-table .ant-table-thead > tr {
  border-bottom: 2px solid #e8e8e8;
  border-top: 0;
}

/* 水平滚动容器样式 */
.horizontal-scroll-container {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  display: block !important;
}

.horizontal-scroll-container::-webkit-scrollbar {
  height: 8px !important;
  background-color: #f1f1f1 !important;
  display: block !important;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb {
  background-color: #c1c1c1 !important;
  border-radius: 4px !important;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb:hover {
  background-color: #a8a8a8 !important;
}

.table-row-normal-height {
  height: 48px;
}

.table-row-compact-height {
  height: 32px !important;
  line-height: 32px !important;
}

.compact-table .ant-table-cell {
  padding-top: 2px !important;
  padding-bottom: 2px !important;
}

.compact-table .ant-table-cell img {
  width: 14px !important;
  height: 14px !important;
}

.compact-table .ant-table-cell {
  font-size: 12px !important;
}

/* 美化表格边框和表头 */
.ant-table {
  border: 1px solid #e8e8e8 !important;
}

.ant-table-thead > tr > th {
  background-color: #f7f7f7 !important;
  font-weight: bold !important;
  border-bottom: 1px solid #e8e8e8 !important;
}

/* 定制分页样式 */
.pagination-info-container {
  border-bottom: 1px solid #e8e8e8;
  border-left: 1px solid #e8e8e8;
  border-right: 1px solid #e8e8e8;
  background: #fff;
}

.pagination-btn {
  min-width: 28px;
  height: 28px;
  border: 1px solid #d9d9d9;
  background-color: #fff;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  margin: 0 4px;
  padding: 0 8px;
}

.pagination-btn:disabled {
  color: rgba(0, 0, 0, 0.25);
  border-color: #d9d9d9;
  cursor: not-allowed;
}

.pagination-btn:hover:not(:disabled) {
  border-color: #1766a3;
  color: #1766a3;
}

@media screen and (max-width: 576px) {
  .horizontal-scroll-container .ant-table-wrapper, 
  .horizontal-scroll-container .ant-table, 
  .horizontal-scroll-container .ant-table-container {
    min-width: 800px !important;
  }
  
  .ant-table-cell {
    padding: 4px !important;
    font-size: 12px !important;
  }
  
  .pagination-info {
    flex-direction: column;
    padding: 5px;
  }
  
  .pagination-tools {
    margin-top: 5px;
  }
}

/* 移动端适配样式 - 在文件末尾添加 */
@media screen and (max-width: 576px) {
  /* 全局布局调整 */
  html, body, #root {
    overflow-x: hidden;
    width: 100%;
    min-width: 320px;
  }
  
  /* 顶部标题栏调整 */
  .layout-header {
    height: 56px;
    padding: 0 10px;
  }
  
  .header-title {
    font-size: 14px;
  }
  
  .header-tabs {
    margin-left: 5px;
    width: calc(100vw - 160px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .header-tab {
    padding: 0 10px;
    font-size: 12px;
    min-width: 60px;
    justify-content: center;
  }
  
  /* 侧边菜单自动折叠 */
  .layout-sider {
    width: 48px !important;
    min-width: 48px !important;
    position: absolute;
    z-index: 90;
    height: calc(100vh - 56px - 32px);
    border-right: 1px solid #e8e8e8;
  }
  
  .layout-sider .sider-menu-label,
  .layout-sider .sider-menu-caret {
    display: none;
  }
  
  .layout-sider .sider-menu-icon {
    margin-right: 0;
    font-size: 22px;
    width: 100%;
    justify-content: center;
  }
  
  /* 内容区域自动适应侧边栏宽度 */
  .layout-content {
    margin-left: 48px;
    width: calc(100% - 48px);
    transition: margin 0.2s;
  }
  
  .content-body {
    padding: 0;
  }
  
  /* 产品库专用样式优化 */
  .product-library-container .layout-sider {
    position: relative;
    z-index: 10;
    width: 100vw !important;
    height: auto;
    min-height: 40px;
    max-height: 200px;
    border-right: none;
    border-bottom: 1px solid #e8e8e8;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* 改变布局为上下结构 */
  .product-library-container .layout-main {
    flex-direction: column;
  }
  
  /* 表格样式优化 */
  .horizontal-scroll-container {
    -webkit-overflow-scrolling: touch;
  }
  
  .data-table .ant-table-thead > tr > th {
    padding: 8px 4px;
    font-size: 12px;
    white-space: nowrap;
    height: 40px;
  }
  
  .data-table .ant-table-tbody > tr > td {
    padding: 4px;
    font-size: 12px;
    white-space: nowrap;
  }
  
  /* 底部版权区域 */
  .layout-copyright {
    height: auto !important;
    min-height: 40px !important;
    font-size: 10px;
    padding: 8px 10px;
    line-height: 1.5;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 90;
    background: #f4f6fa;
    border-top: 1px solid #e5e8ef;
  }
  
  .footer-content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
  }
  
  .footer-content span, 
  .footer-content a {
    display: block;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 10px;
  }

  /* 确保页面内容不被底部遮挡 */
  .layout-main {
    margin-bottom: 40px;
  }

  /* 调整产品列表高度以适应底部固定版权信息 */
  .product-library-container .layout-sider {
    max-height: calc(200px - 40px);
  }

  /* 产品列表内容区域高度调整 */
  .product-library-container .layout-main {
    height: calc(100vh - 340px) !important;
  }
  
  /* 分页工具样式优化 */
  .pagination-info-container {
    margin: 0;
    padding: 5px;
  }
  
  .pagination-info {
    flex-direction: column;
    align-items: center;
    padding: 5px 0;
  }
  
  .pagination-tools {
    margin-top: 5px;
  }

  /* 移动端菜单样式 */
  .layout-sider.mobile-menu-open {
    position: fixed;
    left: 0;
    top: 56px;
    width: 200px !important;
    height: 100vh;
    z-index: 100;
    background-color: #fff;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(0);
  }

  .layout-sider:not(.mobile-menu-open) {
    transform: translateX(-100%);
  }

  /* 菜单遮罩层 */
  .mobile-menu-overlay {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 99;
    display: block;
  }

  /* 移动端菜单项样式 */
  .mobile-menu-open .sider-menu-label,
  .mobile-menu-open .sider-menu-caret {
    display: inline-flex !important;
  }

  .mobile-menu-open .sider-menu-icon {
    margin-right: 8px !important;
    font-size: 16px !important;
    width: auto !important;
    justify-content: flex-start !important;
  }

  /* 移动端菜单内容区域调整 */
  .mobile-content {
    margin-left: 0 !important;
    width: 100% !important;
  }
  
  /* 移动端标题栏优化 */
  .mobile-header {
    padding: 0 10px;
  }
  
  .mobile-title {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  /* 移动端标签滚动优化 */
  .mobile-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    margin-left: 5px;
    padding-bottom: 3px;
    flex: 1;
  }

  .mobile-tabs::-webkit-scrollbar {
    height: 3px;
  }

  .mobile-tabs::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
  }
  
  /* 移动端触摸优化 */
  .sider-menu-item, 
  .sub-menu-item, 
  .header-tab,
  .pagination-btn {
    min-height: 44px; /* 最小触摸区域高度 */
  }

  /* 添加移动菜单按钮样式 */
  .mobile-menu-button {
    border: none !important;
    background: transparent !important;
    padding: 8px !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .mobile-menu-button:hover,
  .mobile-menu-button:focus,
  .mobile-menu-button:active {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
  }

  /* 确保移动端菜单按钮在顶部始终可见 */
  .mobile-menu-button {
    position: relative;
    z-index: 101;
  }
  
  /* 强制显示移动菜单 */
  .layout-sider.mobile-menu-open {
    display: block !important;
    position: fixed;
    left: 0;
    top: 56px;
    width: 200px !important;
    height: calc(100vh - 56px);
    z-index: 100;
    background-color: #fff;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    overflow-y: auto;
    transform: translateX(0) !important;
  }

  .layout-sider:not(.mobile-menu-open) {
    display: block;
    position: fixed;
    left: 0;
    top: 56px;
    width: 200px !important;
    transform: translateX(-100%) !important;
  }
  
  /* 修正内容区域在移动端的样式 */
  .mobile-content {
    margin-left: 0 !important;
    width: 100% !important;
  }

  /* 流程图在移动设备下的样式 */
  .mermaid-container {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  .mermaid-diagram {
    width: 100% !important;
    overflow-x: visible !important;
    text-align: center !important;
  }
  
  .mermaid-diagram svg {
    max-width: 100% !important;
    width: 100% !important; 
    height: auto !important;
    margin: 0 auto !important;
    display: inline-block !important;
  }
  
  /* 确保图表能完整显示 */
  .markdown-wrapper {
    overflow-x: hidden !important;
  }
  
  .markdown-content {
    padding: 5px !important;
  }
  
  /* 提高图表中文本的清晰度 */
  .mermaid-diagram text {
    font-weight: 500 !important;
  }
}

/* 强制表格宽度，确保出现横向滚动条 */
.ant-table-wrapper, .ant-table, .ant-table-container {
  min-width: auto !important;
}

/* 自动列宽样式 */
.data-table.ant-table-wrapper {
  width: 100% !important;
}

.data-table .ant-table-container {
  width: 100% !important;
}

.data-table .ant-table {
  width: 100% !important;
}

/* 调整单元格内容省略样式 */
.data-table .ant-table-cell.ant-table-cell-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 确保单元格内容在必要时可见 */
.data-table .ant-table-cell-ellipsis:hover {
  overflow: visible;
  white-space: normal;
  z-index: 1;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  background: #fff;
}

/* Dashboard styles */
.dashboard {
  width: 100%;
  background-color: #f5f5f5;
}

.dashboard h2 {
  font-weight: 500;
  color: #333;
  margin-bottom: 20px;
  padding-left: 10px;
  border-left: 4px solid #1766a3;
}

.stat-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-card {
  border-top: 3px solid #1890ff;
}

.resource-card {
  border-top: 3px solid #52c41a;
}

.template-card {
  border-top: 3px solid #722ed1;
}

.process-card {
  border-top: 3px solid #13c2c2;
}

.recommend-card {
  border-top: 3px solid #fa8c16;
}

.card-header h3 {
  font-size: 16px;
  display: flex;
  align-items: center;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.chart-container {
  height: 120px;
  margin-top: 16px;
}

.horizontal-scroll-container {
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: thin;
}

.horizontal-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb {
  background-color: #d9d9d9;
  border-radius: 3px;
}

.horizontal-scroll-container::-webkit-scrollbar-track {
  background-color: #f5f5f5;
}

.activity-timeline {
  min-width: 800px;
  padding: 20px 0;
}

.activity-item {
  max-width: 250px;
  transition: all 0.3s;
}

.activity-item:hover {
  transform: translateY(-3px);
}

.activity-title {
  font-weight: bold;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.activity-time {
  font-size: 12px;
  color: #999;
}

.activity-user {
  font-size: 12px;
  color: #666;
}

.truncate-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-activity {
  border-left: 3px solid #1890ff;
}

.resource-activity {
  border-left: 3px solid #52c41a;
}

.template-activity {
  border-left: 3px solid #722ed1;
}

.recommendation-activity {
  border-left: 3px solid #fa8c16;
}

.workflow-card {
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .dashboard {
    padding: 10px;
  }
  
  .activity-timeline {
    min-width: auto;
  }
  
  .chart-container {
    height: 100px;
  }
}